package roll

import (
	"time"
	"math/rand"
	"strconv"
)
type dieRollFunc func(int) int
func DieRoll(size int) int{
	rand.Seed(time.Now().UnixNano())
	return rand.Intn(size)+1
}

func TwoRoll(size1, size2 int) (int, int){
	return DieRoll(size1),DieRoll(size2)
}

func ReturnsNamed(input1 string, input2 int) (theResult string,err error){
	theResult = "modified "+ input1 +", " + strconv.Itoa(input2)
	return theResult,err
}

func FakeDieroll(size int) int{
	return 42
}

func GetDieRolls() []dieRollFunc{
	return []dieRollFunc{
		DieRoll,
		FakeDieroll,
	}
}